package com.hbnu.entity;

import java.util.Date;

public class UserWordBook {
    private int id;
    private int userId;
    private String name;
    private Date createTime;

    public UserWordBook() {}
    public UserWordBook(int id, String name, Date createTime) {
        this.id = id;
        this.name = name;
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "单词本ID: " + id + "\n名称: " + name + "\n创建时间: " + createTime;
    }
}

